<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page import="com.solution.common.config.PublicConfig" %>
<%@ page import="com.solution.wx.common.constants.PublicConstants" %> 
<%
	String basePath = PublicConfig.ROOT_PATH;
	String imgRootURL = PublicConfig.IMG_ROOT_URL; //阿里云图片显示域名
	String ossImgZoomWX = PublicConfig.OSS_IMG_ZOOM_WX; //微信图片缩放
%>
<!-- 引入jstl标签库 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>潮品社区</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/statics_wx/css/main2.css">
<script type="text/javascript">
//系统域名 
var rootPath = '<%=basePath %>';
// 系统上传文件展示域名
var imgRootURL = '<%=imgRootURL %>';
// 微信图片缩放
var ossImgZoomWX = '<%=ossImgZoomWX %>';
</script>
<script src="<%=basePath%>/statics_wx/js/jquery.min.js"></script>
<script src="<%=basePath%>/statics_wx/js/js.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/plugins/layer/layer.js"></script>

</head>
<body style="background: #f3f3f3">
	<c:set var="rootPath" value="<%=basePath %>"></c:set>
	<c:set var="imgRootURL" value="<%=imgRootURL %>"></c:set>
	<c:set var="ossImgZoomWX" value="<%=ossImgZoomWX %>"></c:set>
	<input type="hidden" id="sync_page_num" pname="pageNum" value="${pageBean.currentPage }" />
	<input type="hidden" id="sync_num_per_page" pname="numPerPage" value="${pageBean.numPerPage}" />
	<input type="hidden" id="sync_page_count" pname="pageCount" value="${pageBean.pageCount }" />
	<form id="searchForm" action="${rootPath }/wx/share/search" method="post">
		<input name="searchKey" type="hidden" id="sync_search_key" pname="searchKey" value="${searchKey}" />
	</form>
	<div class="search_part">
		<div class="search_part_con">
			<p>
				<i></i><span><input id="searchKeyVal" type="search" class="inputstyle1" placeholder="一体机" /></span>
			</p>
		</div>
	</div>
	<ul id="share_info_list" class="wall">
		<c:forEach items="${pageBean.recordList }" var="shareInfo" varStatus="status">
			<li class="article">
				<!-- 
				<div class="box1">
					<div class="pic">
						<img src="${imgRootURL }${shareInfo.sharedProductImagePath }${ossImgZoomWX }" onclick="toShareDetailPage(${shareInfo.id});"/>
					</div>
					<div class="item-info">
						<h2 onclick="toShareDetailPage(${shareInfo.id});">${shareInfo.shareTitle }</h2>
						<dl>
							<%--
							<dt>
								<c:choose>
									<c:when test="${fn:contains(shareInfo.wxHeadImage, 'http')}">
										<i><img src="${shareInfo.wxHeadImage }" /></i>
									</c:when>
									<c:otherwise>
										<i><img src="${imgRootURL }${shareInfo.wxHeadImage }${ossImgZoomWX }" /></i>
									</c:otherwise>
								</c:choose>
								<span>${shareInfo.userName }</span>
							</dt>
							<dt>
								<c:choose>
									<c:when test="${shareInfo.isUserLike > 0 }">
										<a href="javascriopt:void(0);" class="zan current">
											<em></em>
											<span>${shareInfo.likeQuantity }</span>
										</a>
									</c:when>
									<c:otherwise>
										<a href="javascript:void(0);" onclick="doShareInfoLike(this,${shareInfo.id})" class="zan">
											<em></em>
											<span>${shareInfo.likeQuantity }</span>
										</a>
									</c:otherwise>
								</c:choose>
							</dt>
							--%>
						</dl>
					</div>
				</div>
				-->
				
				<div class="box1">
					<div class="pic">
						<img src="${imgRootURL }${shareInfo.sharedProductImagePath }${ossImgZoomWX }"
							onclick="toShareDetailPage(${shareInfo.id});" />
					</div>
					<div class="item-info">
						<a href="javascript:void(0);"
							onclick="toShareDetailPage(${shareInfo.id});"><h2>${shareInfo.shareTitle }</h2></a>
						<dl>
							<dt>
								<a href="javascript:void(0);"><i> 
									<c:when test="${fn:contains(shareInfo.wxHeadImage, 'http')}">
										<img src="images/user_img1.png" /></i><span>${shareInfo.userName }</span>
									</c:when> 
									<c:otherwise>
										<img src="${imgRootURL }${shareInfo.wxHeadImage }${ossImgZoomWX }" />
									</c:otherwise>
								</a>
							</dt>
							<dt>
								<c:when test="${shareInfo.isUserLike > 0 }">
									<a href="javascript:void(0)" class="zan"><em></em><span>${shareInfo.likeQuantity }</span></a>
								</c:when>
								<c:otherwise>
									<a href="javascript:void(0)" class="zan"><em></em><span>0</span></a>
								</c:otherwise>
							</dt>
						</dl>
					</div>
				</div><u></u>
			</li>
		</c:forEach>
	</ul>
	<script src="<%=basePath%>/statics_wx/js/jaliswall.js" type="text/javascript" charset="utf-8"></script>
	<script src="<%=basePath%>/js/wx/share/share_list.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$(function(){
			$('.wall').jaliswall({ item: '.article' });
		});
	</script>
</body>

</html>